package com.deppon.vts.micro.service.logic;

import com.deppon.vts.micro.service.IArrivalService;
import com.deppon.vts.micro.service.biz.PublicBizBaseService;
import com.deppon.vts.micro.service.biz.bean.BizContext;
import com.deppon.vts.micro.service.logic.bean.LogicArrivalRequestEntity;
import com.deppon.vts.micro.service.logic.bean.LogicArrivalResponseEntity;

public abstract class LogicArrivalService<I extends LogicArrivalRequestEntity, R extends LogicArrivalResponseEntity>
		extends PublicBizBaseService<I, R> implements IArrivalService<I, R> {

	public LogicArrivalService() {
		INTERFACE = "AL";
	}

	@Override
	public void process(BizContext<I, R> ctx) throws Exception {
		LogicArrivalRequestEntity request = (LogicArrivalRequestEntity) ctx.getRequest();
		LogicArrivalResponseEntity response = (LogicArrivalResponseEntity) ctx.getResponse();
		// TODO 这里完善服务的通用逻辑
		{
			if (log.isDebugEnabled()) {
				log.debug("LogicArrivalService is processing for msgId: {}", this.getMsgId());
			}
		}
		super.process(ctx);
	}

	@Override
	public void confirmTccTransaction(BizContext<I, R> ctx) {

	}

	@Override
	public void cancelTccTransaction(BizContext<I, R> ctx) {

	}

}
